package net.daoke.relation.model.dto;

import lombok.Data;
import net.daoke.relation.model.domain.NodeDomain;

import java.util.List;

@Data
public class NetworkGraphDTO {
    private List<NodeDomain> nodeDomains; // 所有节点
    private List<NetworkRelationshipDTO> relationships; // 所有关系

    public NetworkGraphDTO(List<NodeDomain> nodeDomains, List<NetworkRelationshipDTO> relationships) {
        this.nodeDomains = nodeDomains;
        this.relationships = relationships;
    }
}
